home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / DOS400UN.ZIP / DOS400.DOC
Text File  |  1988-11-12  |  5KB  |  110 lines

  1.           DOS 4.0 Undocumented Features
  2.  
  3.     I've been playing around a bit with PC-Magazines RAMVIEW
  4. program.  An excellent program, allows you to really get into
  5. hacking etc.  Well anyway.  A few days ago I found an
  6. undocumented command in DOS 4.0 - TRUENAME.  Well today,
  7. accidentally, after formatting a disk, I found that the FORMAT
  8. command has actually more parameters than stated in the manual!
  9. Then I started to find if other commands have undocumented
  10. features too.  I didn't even bother checking commands like
  11. BACKUP, RESTORE, MODE, XCOPY etc they have too many options
  12. already, I'll leave it to someone else. So here's what I came
  13. up with:
  14.  
  15. FORMAT:
  16.      /T, /N:              Unknown. They each take a number,
  17.                   in the format: /T:xxx/N:xxx. You
  18.                   must use both of the switches
  19.                   together.
  20.      /AUTOTEST:           Go right on to formatting, do not
  21.                   wait for confirmation, do not
  22.                   display final message.
  23.      /BACKUP, /SELECT:    Same as above. I guess these
  24.                   switches are used by the SELECT
  25.                   program and the BACKUP command.
  26.  
  27. SHELLC: These are additional options you can add to the @SHELLC
  28.     command in the DOSSHELL.BAT file. In the getting
  29.     started manual theres an explanation how to change
  30.     DOSSHELL switches, but here are some additional ones:
  31.  
  32.      /CONFIRMDELETEON (Default)   These are the options
  33.      /CONFIRMDELETEOFF            that appear in the File
  34.      /CONFIRMREPLACEON (Default)  options... menu in the
  35.      /CONFIRMREPLACEOFF           File System. Whatever you
  36.      /ALLOWSELECTON               change in that Menu is not
  37.      /ALLOWSELECTOFF (Default)    going to be retained when
  38.                       you invoke the shell again.
  39.      /SORTBYNAME                  You can set these switches
  40.      /SORTBYEXT                   to your liking so that each
  41.      /SORTBYSIZE                  time you go into the Shell
  42.      /SORTBYDATE                  you won't have to change
  43.      /SORTBYDISK                  them.
  44.  
  45.      /ASC:filename.ASC    You can specify from which file
  46.                   you want the "Extension
  47.                   Associations" to be read or
  48.                   saved. This is useful if you are
  49.                   networking DOS, so each user can
  50.                   have his own Associations.
  51.      /NROOT, /DBCS, /ENH, I don't have the slightest idea
  52.      /REF, /PRE           what these are.
  53.      /PRO:filename.PRO    I don't know exactly what this
  54.                   option does. I think it has
  55.                   something to do with the printer,
  56.                   since the GRAPHICS command uses a
  57.                   file GRAPHICS.PRO to get info
  58.                   about the different printers.
  59.  
  60.      Another thing about DOSSHELL: In the manual it says
  61.      that you can't use the GOTO statement in the Commands:
  62.      field when adding a program to a group. However, if
  63.      you do, it will terminate DOSSHELL and throw you back
  64.      to DOS, saying "Label not found." There are two labels
  65.      that *do* work, COMMON and END. Entering GOTO COMMON
  66.      or GOTO END in the commands... field and running it
  67.      will have no affect. Strangely, COMMON and END are the
  68.      two labels used in DOSSHELL.BAT. Now try this: make a
  69.      new program in the shell, call it whatever you like.
  70.      In the commands... field enter GOTO ABCD, then press
  71.      F4, then type DIR and press F2 to save. Now run the
  72.      program. It will throw you out to dos, saying the
  73.      label wasn't found. Now type DOSSHELL - before going
  74.      into the shell, it will show you the directory! I came
  75.      to the conclusion that SHELLB, a resident program,
  76.      must be the "driver" of all programs run from the
  77.      DOSSHELL. SHELLB probably gets passed whatever
  78.      DOSSHELL wants it to execute, then SHELLB executes it
  79.      while the SHELL itself is not in memory. Then SHELLC
  80.      is called and you get back into the shell. This way
  81.      more memory is free for the programs that get executed.
  82.  
  83.  
  84. ATTRIB:
  85.      You can specify, after a filename, one of the
  86.      following keywords. These keywords seem to exist only
  87.      to display the value, not to change it or anything.
  88.      The format is:
  89.            ATTRIB filename keyword or
  90.            ATTRIB [+/-][A/R] filename keyword.
  91.  
  92.      FILESIZE:            Reports the size of the file(s).
  93.      DATE, TIME:          Report date or time of the file.
  94.      CP:                  Invalid parameter, but it was
  95.                   there with the others.
  96.      CODEPAGE:            Invalid parameter. This one is
  97.                   strange. You type ATTRIB *.*
  98.                   CODEPAGE and it says "Invalid
  99.                   parameter - CP".
  100.  
  101. If anyone has found any other undocumented commands/switches/
  102. whatever, please inform me, my GEnie Mail address is D.OZ1, or
  103. send me mail via the QwikMail system.
  104.  
  105.         Hope you enjoy....
  106.  
  107.               >>> Doron. <<<
  108.  
  109.  
  110.